package com.middlegroup.subjectpay.dto;

import com.middlegroup.common.enums.ChannelCode;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 *
 * @author pc
 * @date 2019/1/21
 */
@Data
public class BindCardDto implements Serializable {

    @NotNull(message = "商户订单号不能为空!")
    private String merchantBillNo;
    /**
     * 中台生成的唯一的订单号
     */
    @NotNull(message = "中台订单号不能为空!")
    private String billNo;
    private String name;
    private String phone;
    private String idCard;
    private String cardNo;
    /**
     BINDCARDAPPLY("BINDCARDAPPLY","协议绑卡申请"),
     BINDCARDCONFIRM("BINDCARDAPPLY","协议绑卡确认"),
     RESENDSMS("RESENDSMS","协议绑卡重发短信验证码"),
     */
    @NotNull(message = "协议绑卡类型不能为空!")
    private String serviceType;

    @NotNull(message = "主体编码不能为空!")
    private String subjectCode;

    private ChannelCode channelCode;

    /**
     * 绑卡确认时必传
     */
    private String smsCode;

    /**
     * 校验码(例如快捷通协议绑卡申请的时候返回的token_id)
     */
    private String validCode;

}
